home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3raysmp.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_RAYSAMPLE_H = 1;
- include("oops/r3root.js")
-
-
- var R3CLID_RAYSAMPLE = 325;
-
-
-
-
- // Description: resets the channel data to zero
-
- R3RAYSMPM_INITIALIZE = 325000;
-
- function mR3RAYSMPM_INITIALIZE() {
- DoA(this.r3obj, 325000, 0, R3TID_INTEGER, 0);
- }
-
- // Description: adds to a new channel to a raysample instance. If a channel with the
- // given name already exists, no actions take place.
- // p1: Integer, class id of channel
- // p3: Integer, unique name of the channel.
-
- R3RAYSMPM_ADDCHANNEL = 325001;
-
- function mR3RAYSMPM_ADDCHANNEL(p1, p3) {
- DoA2(this.r3obj, 325001, p1, R3TID_INTEGER, 0, p3, R3TID_INTEGER, 0);
- }
-
- // Description: removes all added dynamic channels from a raysample.
-
- R3RAYSMPM_REMOVEDYNAMICCHANN = 325002;
-
- function mR3RAYSMPM_REMOVEDYNAMICCHANN() {
- DoA(this.r3obj, 325002, 0, R3TID_INTEGER, 0);
- }
-
- // Description: returns the storage offset of a given channel. This offset can be used * together
- // with the macro R3CHADDR(raysmp, storage_offset) to find out the memory * address of the channel data.
- // p3: String, name of the channel
-
- R3RAYSMPM_NAMETOINDEX = 325003;
-
- function mR3RAYSMPM_NAMETOINDEX(p3) {
- DoA(this.r3obj, 325003, p3, R3TID_STRING, 0);
- }
-
- // Description: returns the clid of a given channel name.
- // Returns: Integer, channel class identifier (NULL if not found)
- // p3: String, channel name
-
- R3RAYSMPM_NAMETOCLID = 325004;
-
- function mR3RAYSMPM_NAMETOCLID(p3) {
- return DoA(this.r3obj, 325004, p3, R3TID_STRING, 0);
- }
-
- // Description: Read the contents of the given channel. The caller must allocate * wide enough buffer
- // for storing tchannel data. The method is suitable for static channels * because the channel
- // is identified by a clid. See also R3RAYSMPM_GETCHANNELVALUEBYNAME below.
- // p1: Integer, clid of the channel
- // p3: Object, the address to which the channel data is copied.
-
- R3RAYSMPM_GETCHANNELVALUE = 325005;
-
- function mR3RAYSMPM_GETCHANNELVALUE(p1, p3) {
- DoA2(this.r3obj, 325005, p1, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Sets the contents of the given (static) channel in a raysample.
- // p1: Integer, clid of the channel
- // p3: Object, the address from which the channel data is copied.
-
- R3RAYSMPM_SETCHANNELVALUE = 325006;
-
- function mR3RAYSMPM_SETCHANNELVALUE(p1, p3) {
- DoA2(this.r3obj, 325006, p1, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Read the contents of the given channel. The caller must allocate * wide enough buffer
- // for storing tchannel data.
- // p1: String, name of the channel
- // p3: Object, the address to which the channel data is copied.
-
- R3RAYSMPM_GETCHANNELVALUEBYN = 325007;
-
- function mR3RAYSMPM_GETCHANNELVALUEBYN(p1, p3) {
- DoA2(this.r3obj, 325007, p1, R3TID_STRING, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Sets the contents of the given channel in a raysample.
- // p1: String, name of the channel
- // p3: Object, the address from which the channel data is copied.
-
- R3RAYSMPM_SETCHANNELVALUEBYN = 325008;
-
- function mR3RAYSMPM_SETCHANNELVALUEBYN(p1, p3) {
- DoA2(this.r3obj, 325008, p1, R3TID_STRING, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Copies the channel data of a raysample to another raysample. * The caller is rensponsible
- // for passing two identically configured raysamples. * Different width or channel set (not examined for
- // speed reasons) may result to system failure.
- // p3: Object, the sample from which data is copied
-
- R3RAYSMPM_ASSIGN = 325009;
-
- function mR3RAYSMPM_ASSIGN(p3) {
- DoA(this.r3obj, 325009, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Allocates channel data. Raysample channels can be read and written after this. * Do
- // not change width or channel configuration between BEGIN-END pair.
-
- R3RAYSMPM_BEGIN = 325010;
-
- function mR3RAYSMPM_BEGIN() {
- DoA(this.r3obj, 325010, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Frees channel data.
-
- R3RAYSMPM_END = 325011;
-
- function mR3RAYSMPM_END() {
- DoA(this.r3obj, 325011, 0, R3TID_INTEGER, 0);
- }
-
- // Description: installs a new static channel to the raysample class. If it already was installled, *
- // actions take place. This method should be called only during class installation (at program * configuration
- // time) because some modules rely on fixed static channel indices.
- // p3: Integer, clid of the channel (of base class R3CLID_CHANNEL) to be installed
-
- R3RAYSMPCM_INSTALLCHANNEL = 325012;
-
- function mR3RAYSMPCM_INSTALLCHANNEL(p3) {
- DoA(this.r3obj, 325012, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Does R3SendMsg3(p1, msg, channeldatatype, channelclid, * R3RCA_Name, channelname, * R3CHCA_SubCount, channelsubcount, * R3CHCA_SubIds, channelsubidarray,
- // R3CHCA_SubNames, channelsubnamearray, * R3TAG_END); * * for all installed static channels *
- // p1: Object, object to be called
- // p3: Integer, callback method
-
- R3RAYSMPCM_ENUMSTATICCHANNEL = 325013;
-
- function mR3RAYSMPCM_ENUMSTATICCHANNEL(p1, p3) {
- DoA2(this.r3obj, 325013, p1, R3TID_OBJECT, 0, p3, R3TID_INTEGER, 0);
- }
-
- // Description: returns the storage offset of a given static channel. This offset can be used *
- // together with the macro R3CHADDR(raysmp, channel_index) to find out the memory * address of the channel
- // data.
- // p3: Integer, class id of the channel
-
- R3RAYSMPCM_GETCHANNELINDEX = 325014;
-
- function mR3RAYSMPCM_GETCHANNELINDEX(p3) {
- DoA(this.r3obj, 325014, p3, R3TID_INTEGER, 0);
- }
-
- // Description: returns the clid of a given static channel name.
- // Returns: Integer, channel class identifier (NULL if not found)
- // p3: String, channel name
-
- R3RAYSMPCM_NAMETOSTATICCLID = 325015;
-
- function mR3RAYSMPCM_NAMETOSTATICCLID(p3) {
- return DoA(this.r3obj, 325015, p3, R3TID_STRING, 0);
- }
-
-
-
-
- R3RAYSMPA_Width = 325500;
- function SetR3RAYSMPA_Width(value) {
- R3Set(this.r3obj, R3RAYSMPA_Width, value, R3TID_INTEGER, 0);
- }
-
- function GetR3RAYSMPA_Width() {
- return R3Get(this.r3obj, R3RAYSMPA_Width, R3TID_INTEGER, 0);
- }
-
- R3RAYSMPA_ChannelCount = 325501;
- function GetR3RAYSMPA_ChannelCount() {
- return R3Get(this.r3obj, R3RAYSMPA_ChannelCount, R3TID_INTEGER, 0);
- }
-
- var R3RAYSMPA_NoStaticChannels = 325504; // Boolean
-
-
- function r3Raysample () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_RAYSAMPLE, arguments);
- }
- // Methods
- this.INITIALIZE=mR3RAYSMPM_INITIALIZE;
- this.ADDCHANNEL=mR3RAYSMPM_ADDCHANNEL;
- this.REMOVEDYNAMICCHANN=mR3RAYSMPM_REMOVEDYNAMICCHANN;
- this.NAMETOINDEX=mR3RAYSMPM_NAMETOINDEX;
- this.NAMETOCLID=mR3RAYSMPM_NAMETOCLID;
- this.GETCHANNELVALUE=mR3RAYSMPM_GETCHANNELVALUE;
- this.SETCHANNELVALUE=mR3RAYSMPM_SETCHANNELVALUE;
- this.GETCHANNELVALUEBYN=mR3RAYSMPM_GETCHANNELVALUEBYN;
- this.SETCHANNELVALUEBYN=mR3RAYSMPM_SETCHANNELVALUEBYN;
- this.ASSIGN=mR3RAYSMPM_ASSIGN;
- this.BEGIN=mR3RAYSMPM_BEGIN;
- this.END=mR3RAYSMPM_END;
- this.INSTALLCHANNEL=mR3RAYSMPCM_INSTALLCHANNEL;
- this.ENUMSTATICCHANNEL=mR3RAYSMPCM_ENUMSTATICCHANNEL;
- this.GETCHANNELINDEX=mR3RAYSMPCM_GETCHANNELINDEX;
- this.NAMETOSTATICCLID=mR3RAYSMPCM_NAMETOSTATICCLID;
-
- // Attributes
- this.GetWidth=GetR3RAYSMPA_Width;
- this.SetWidth=SetR3RAYSMPA_Width;
- this.GetChannelCount=GetR3RAYSMPA_ChannelCount;
- }
-
- r3Raysample.prototype=new r3Root;
- // r3raysmp.h_H